package com.lhb.SC.admin.web;

import com.lhb.SC.admin.feign.JiaoWuFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/third")
public class ThirdController {

    @Autowired
    private JiaoWuFeign jiaoWuFeign;

    @RequestMapping("/jw/productList")
    public Object productList(@RequestParam("school_id") Integer schoolId,
                              @RequestParam("standard_dept_code") String deptCode) {
        String appId = "test";
        String accessToken = "ef4e3a2b-ae21-4cad-ada8-86ec46a8a83g";
        return jiaoWuFeign.productList(schoolId, deptCode, appId, accessToken);
    }
}
